package com.hdu.kdk_feign.controller;


import com.hdu.User;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("user")
@Slf4j
public class UserController {


    @GetMapping("info")
    public User getUser(@RequestParam Long id) {
        log.info("getUser, id : {}", id);
        User user = new User();
        user.setId(id);
        user.setSex(1);
        user.setEmail("23132132@qq.com");
        user.setUsername("qyh");
        return user;
    }
}
